home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
programming
/
arexx
/
rxcmanager
/
examples
/
cmfind.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-05-25
|
684b
|
41 lines
/*
FIND ALL ENTRY IN "USER" AND "WWW" GROUP
*/
if ~show("L","rxcmanager.library") then
if ~addlib("rxcmanager.library",0,-30) then do
say "no rxcmanager.library"
exit
end
parse arg key
k = "#?"key"#?"
patt.Name = k
patt.WWW = k
patt.Comment = k
num = CMFind("USER WWW","REC","PATT",1)
if num=0 then do
say "No entry found for '"key"'"
exit
end
say "Found" num "entry:"
do i=0 to num-1
say
say "Type: " rec.i.Type
say "Name: " rec.i.Name
say "WWW: " rec.i.WWW
if rec.i.FTP ~= "" then say "FTP: " rec.i.FTP
say "Comment: " rec.i.Comment
if rec.i.Type="WWW" then say "WebMaster:" rec.i.WebMaster
say "EMail: " rec.i.EMail
say
end